const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  outputDir: '../app/src/main/assets/www',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://192.168.8.105:8090',
        changeOrigin: true,
        // pathRewrite: {
        //   '^/api': ''
        // }
      }
    }
  },
  configureWebpack: {
    plugins: []
  },
  productionSourceMap: false,
  configureWebpack: {
    optimization: {
      minimize: true
    }
  }
})
